﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Task.Manage" %>


<!doctype html>
<html>
<head runat="server">
    <title>任务管理</title>
    <meta charset="utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="12000">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table cellspacing="0" cellpadding="4" width="100%" border="0" id="NavigationPath">
                <tr>
                    <td><asp:Label ID="lblPath" runat="server"></asp:Label>
                    </td>
                    <td>
                        &nbsp;<a href="Add.aspx">添加任务</a>
                    </td>
                </tr>
            </table>
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                OnRowCommand="GV_List_RowCommand" OnRowDataBound="GV_List_RowDataBound" CssClass="table table-bordered table-condensed table-hover">
                <Columns>
                    <asp:BoundField DataField="TaskName" HeaderText="计划任务名称"></asp:BoundField>
                    <asp:BoundField  Visible="false" HeaderText="执行方式">
                        <HeaderStyle Width="100px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="LastRunTime" DataFormatString="{0:yy-MM-dd HH:mm:ss}"
                        HeaderText="上次执行时间" HtmlEncode="False">
                        <HeaderStyle Width="140px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:ButtonField HeaderText="任务状态" CommandName="IsUsed" DataTextField="IsUsed">
                        <HeaderStyle Width="80px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:ButtonField>
                    <asp:HyperLinkField Text="修改" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Task_Add.aspx?ID={0}">
                        <HeaderStyle Width="40px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:HyperLinkField>
                    <asp:ButtonField Text="删除">
                        <HeaderStyle Width="40px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:ButtonField>
                    <asp:ButtonField Text="立即执行" Visible="False">
                        <HeaderStyle Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:ButtonField>
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
